@extends('admin/layout/index')

@section('title')
     后台管理员列表
@endsection

@section('content')
     @if (count($errors) > 0)
         <div class="mws-form-message error">
         错误提示
             <ul>
                 @foreach ($errors->all() as $error)
                     <li>{{ $error }}</li>
                 @endforeach
             </ul>
         </div>
     @endif
     <div class="mws-panel grid_8">
          <div class="mws-panel-header">
               <span>后台管理员添加</span>
          </div>
          <div class="mws-panel-body no-padding">
               <form class="mws-form" action="/admin/a_user/insert" method="post" enctype="multipart/form-data">
                    {{ csrf_field() }}
                    <div class="mws-form-block">
                         <div class="mws-form-row">
                              <label class="mws-form-label">管理员名</label>
                              <div class="mws-form-item">
                                   <input type="text" class="small" name="a_uname" value="">
                              </div>
                         </div>
                         <div class="mws-form-row">
                              <label class="mws-form-label">管理员密码</label>
                              <div class="mws-form-item">
                                   <input type="password" class="small" name="a_upassword" value="">
                              </div>
                         </div>
                         <div class="mws-form-row">
                              <label class="mws-form-label">确认密码</label>
                              <div class="mws-form-item">
                                   <input type="password" class="small" name="repassword" value="">
                              </div>
                         </div>
                         <div class="mws-form-row">
                              <label class="mws-form-label">上传头像文件</label>
                              <div class="mws-form-item">
                                   <input type="file" class="small" name="a_upic" value="">
                              </div>
                         </div>
                         <div class="mws-form-row">
                              <label class="mws-form-label">管理员权限</label>
                              <div class="mws-form-item clearfix">
                                   <ul class="mws-form-list">
                                        <li><input type="radio" name="a_uauth"  value="超级管理员"> <label>超级管理员</label></li>
                                        <li><input type="radio" name="a_uauth" value="普通管理员"> <label>普通管理员</label></li>
                                   </ul>
                              </div>
                         </div>

                    </div>
                    <div class="mws-button-row">
                         <input type="submit" value="添加" class="btn btn-danger">
                         <input type="reset" value="重置" class="btn ">
                    </div>
               </form>
          </div>
      </div>
@endsection